<template>
  <div class="borderless">
    <div class="borderless-left">
      <div v-for="(item, index) in data" :key="index" class="label">{{ item.label }}</div>
    </div>
    <div class="borderless-right">
      <div v-for="(item, index) in data" :key="index" class="value">{{ item.value }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BorderlessTable',
  props: {
    data: {
      type: Array,
      default: () => []
    }
  }
};
</script>

<style lang="less" scoped>
.borderless {
  box-sizing: border-box;
  padding: 20px;
  background-color: #fff;
  width: 492px;
  display: flex;
  &-left {
    width: fit-content;
    margin-right: 20px;
    width: fit-content;
    .label {
      min-width: 140px;
      max-width: 220px;
      font-family: Roboto;
      font-size: 14px;
      font-weight: 500;
      color: #202124;
      &:not(:last-child) {
        margin-bottom: 32px;
      }
    }
  }
  &-right {
    .value {
      width: 312px;
      font-family: Roboto;
      font-size: 14px;
      font-weight: 400;
      color: #202124;
      &:not(:last-child) {
        margin-bottom: 32px;
      }
    }
  }
}
</style>
